<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
{eval $user=$this->user; $setting=$this->setting;}
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Manyou's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={MY_CHARSET}">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet"/>
<script type="text/javascript" src="js/admin.js"></script>
</head>

<body>
<div id="append">
</div>
<div class="container">
	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->
	<div class="mainbox nomargin">
		<form {if isset($cursite)}action="index.php?admin_site/edit{$setting['seo_suffix']}"{else}action="index.php?admin_site/add{$setting['seo_suffix']}"{/if} method="post">
			<table class="opt">
				<tr>
					<th>分站名称:(中文汉字)</th>
				</tr>
				<tr>
					<td><input class="txt"  name="name" style="width:300px;" {if isset($cursite['name'])}value="{$cursite['name']}"{/if} ></td>
				</tr>
				<tr>
					<th>所属地区:</th>
				</tr>
				<tr>
					<td>{$area_js}</td>
				</tr>
				<tr>
					<th>同业分类:<input class="checkbox" id="chkall" onclick="checkall('outcate[]')" type="checkbox" name="chkall"><label for="chkall">全选</label></th>
				</tr>
				<tr>
					<td>{$out_js}</td>
				</tr>
				<tr>
					<th>关键字:</th>
				</tr>
				<tr>
					<td><input class="txt"  name="keywords" style="width:300px;" {if isset($cursite['keywords'])}value="{$cursite['keywords']}" {/if}></td>
				</tr>
				<tr>
					<th>描述:</th>
				</tr>
				<tr>
					<td><input class="txt"  name="descs" style="width:300px;" {if isset($cursite['descs'])}value="{$cursite['descs']}" {/if}></td>
				</tr>
				<tr>
					<th>首页显示:</th>
				</tr>
				<tr>
					<td><input type="radio"  value="0"  class="radio" name="ifopen" {if (!isset($cursite['ifopen']) || $cursite['ifopen']==0)}checked{/if} />不显示 &nbsp;&nbsp;<input type="radio" class="radio" name="ifopen" value="1" {if isset($cursite['ifopen']) && $cursite['ifopen']==1}checked{/if}/>显示</td>
				</tr>
				<tr>
					<th>分站状态:</th>
				</tr>
				<tr>
					<td><input type="radio"  value="1"  class="radio" name="available" {if ($cursite['available']==1)}checked{/if} />打开 &nbsp;&nbsp;<input type="radio" class="radio" name="available" value="0" {if (int)$cursite['available']==0}checked{/if}/>关闭</td>
				</tr>
				<tr>
					<th>分站模版:(不添加则使用系统默认模版)</th>
				</tr>
				<tr>
					<td><input class="txt"  name="tpls" style="width:300px;" {if isset($cursite['tpls'])}value="{$cursite['tpls']}" {/if} /></td>
				</tr>
				<tr>
					<th>分站二级域名:(不添加则使用分站名称的汉语拼音)</th>
				</tr>
				<tr>
					<td><input class="txt"  name="domain" style="width:300px;" {if isset($cursite['domain'])}value="{$cursite['domain']}" {/if} /></td>
				</tr>
				<tr>
					<th>分站目录:(不添加则使用分站名称的汉语拼音)</th>
				</tr>
				<tr>
					<td><input class="txt"  name="dir" style="width:300px;" {if isset($cursite['dir'])}value="{$cursite['dir']}" {/if} /></td>
				</tr>
				<tr>
					<th>分站首字母:(不添加则使用分站名称汉语拼音的首字母)</th>
				</tr>
				<tr>
					<td><input class="txt"  name="pinyin" style="width:300px;" {if isset($cursite['pinyin'])}value="{$cursite['pinyin']}" {/if} /></td>
				</tr>

			</table>
			<div class="opt">
				{if isset($cursite)}
				<input type="hidden" name="nid" value="$cursite['id']"/>
				{/if}
				<input class="btn" tabindex="3" type="submit" value=" 提 交 " name="submit"></div>
		</form>
	</div>
</div>

</body>

</html>
